from django.conf.urls.defaults import *
from django.conf import settings
from eport.pages import views
from eport.blog.feeds import LatestArticles
from eport.pages.feeds import Content


# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
feeds = {
    'latest': LatestArticles,
	'content' : Content,
}

urlpatterns = patterns('',
    (r'^admin/filebrowser/', include('filebrowser.urls')),
    (r'^admin/(.*)', admin.site.root),
	(r'^page/', include('pages.urls')),
	(r'^blog/', include('blog.urls')),
	(r'^contact/', include('contact.urls')),
	(r'^$', views.index),
	(r'^tinymce/', include('tinymce.urls')),
	(r'^media/(?P<path>.*)$', 'django.views.static.serve',
	        {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
)
urlpatterns += patterns('django.contrib.syndication.views',
	url(r'^feeds/(?P<url>.*)/$', 'feed', {'feed_dict' : feeds }, name="site_feeds"),
)